package com.cdc.bubblesort;

import java.util.Random;

public class ArrayTool {
	public static int [] initArray(int length) {
		int [] arr=new int[length];
		Random random=new Random();
		for(int i=0;i<length;i++) {
			arr[i]=random.nextInt(500);
		}
		return arr;
	}

}
